<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>admin</title>
<link href="<?php echo ADMIN_THEME?>images/reset.css" rel="stylesheet" type="text/css" />
<link href="<?php echo ADMIN_THEME?>images/system.css" rel="stylesheet" type="text/css" />
<link href="<?php echo ADMIN_THEME?>images/main.css" rel="stylesheet" type="text/css" />
<link href="<?php echo ADMIN_THEME?>images/table_form.css" rel="stylesheet" type="text/css" />
<link href="<?php echo ADMIN_THEME?>images/dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<?php echo ADMIN_THEME?>js/jquery.min.js"></script>
<script language="javascript" src="<?php echo ADMIN_THEME?>js/dialog.js"></script>
</head>
<body>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href="<?php echo purl('admin/')?>"><em>购物管理</em></a><span>|</span>
		<a href="<?php echo purl('admin/setting')?>" class="on"><em>支付配置</em></a><span>|</span>
	</div>
    <div class="bk10"></div>
	<div class="table-list">
		<form method="post" action="" id="myform" name="myform">
			<table width="100%" class="table_form ">
			<tr>
				<th width="200">支付接口开关： </th>
				<td><input name="data[tenpay][use]" type="radio" value="1" <?php if ($data['tenpay']['use']==1) echo "checked";?>> 开启 
				&nbsp;&nbsp;&nbsp;<input name="data[tenpay][use]" type="radio" value="0" <?php if ($data['tenpay']['use']==0) echo "checked";?>> 关闭
				&nbsp;&nbsp;&nbsp;
				<a target="_blank" href="http://union.tenpay.com/mch/mch_register.shtml">接口申请地址</a>
				</td>
			</tr>
			<tr>
				<th>接口名称： </th>
				<td><input type="text" class="input-text" style="width:200px;" value="<?php echo $data['tenpay']['name'] ? $data['tenpay']['name'] : '财付通'?>" name="data[tenpay][name]"></td>
			</tr>
			<tr>
				<th>商户号： </th>
				<td><input type="text" class="input-text" style="width:200px;" value="<?php echo $data['tenpay']['partner']?>" name="data[tenpay][partner]"></td>
			</tr>
			<tr>
				<th>密钥(key)： </th>
				<td><input type="text" class="input-text" style="width:300px;" value="<?php echo $data['tenpay']['key']?>" name="data[tenpay][key]"></td>
			</tr>
			<tr>
				<th>选择接口类型： </th>
				<td>
					使用即时到账收款接口
				</td>
			</tr>
			</tbody>
			</table>
			
			<div class="bk15"></div>
			<input type="submit" class="button" value="提交" name="submit">
		</form>
	</div>
</div>
</body>
</html>
<script language="javascript">
function SwapTab(name,cls_show,cls_hide,cnt,cur){
	for(i=1;i<=cnt;i++){
		if(i==cur){
			$('#div_'+name+'_'+i).show();
			$('#tab_'+name+'_'+i).attr('class',cls_show);
		}else{
			$('#div_'+name+'_'+i).hide();
			$('#tab_'+name+'_'+i).attr('class',cls_hide);
		}
	}
}
</script>